package com.gushenge.core.beans

import com.chad.library.adapter.base.entity.node.BaseExpandNode
import com.chad.library.adapter.base.entity.node.BaseNode

data class GiftList(
        var biaoqian: ArrayList<String>,
        var icon: String,
        var id: String,
        var lb_num: String,
        var list: ArrayList<X> = arrayListOf(),
        var name: String,
        var summary: String,
        var state: Boolean = false
) :  BaseExpandNode() {

    override val childNode: MutableList<BaseNode>?
        get() = list as MutableList<BaseNode>

    data class X(
            var cardname: String,
            var cate: String,
            var content: String,
            var end_time: String,
            var gid: String,
            var gname: String,
            var id: String,
            var meth: String,
            var start_time: String,
            var type: String

    ) : BaseNode() {
        override val childNode: MutableList<BaseNode>?
            get() = null
    }

}